package second.progr.tc;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;

import org.testng.annotations.Test;

import second.progr.helpstaff.FoldersList;

public class FolderRemovingTests extends TestBase{
	
	@Test
	public void testFolderRemoving() {
		FoldersList oldFoldersList = app.getFolderHelper().getFolders();
		String foldName = app.getFolderHelper().clickOnFolderAndDelete();
		FoldersList newFoldersList = app.getFolderHelper().getFolders();
		assertThat(newFoldersList, equalTo(oldFoldersList.withOut(foldName)));
	}
}
